<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<package name="default" namespace="/" extends="json-default">
		<action name="regist" class="controller.action.regist" method="regist">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="sign" class="controller.action.regist" method="sign">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		
		<action name="getGeneral" class="controller.action.SubjectType" method = "getGeneralType">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getSub" class="controller.action.SubjectType" method = "getSubType">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="ekModify" class="controller.action.SubjectType" method = "modify">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="ekadd" class="controller.action.SubjectType" method = "add">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="ekdelete" class="controller.action.SubjectType" method = "delete">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="ekquery" class="controller.action.SubjectType" method = "query">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getEp" class="controller.action.epAction" method = "getList">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getProvince" class="controller.action.epAction" method = "getProvince">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="epAdd" class="controller.action.epAction" method = "add">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="epModify" class="controller.action.epAction" method = "modify">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="epQuery" class="controller.action.epAction" method = "query">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="epDelete" class="controller.action.epAction" method = "delete">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="esAdd" class="controller.action.regist" method = "add">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="esModify" class="controller.action.regist" method = "modify">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="esDelete" class="controller.action.regist" method = "delete">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="esChangeState" class="controller.action.regist" method = "changeState">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="esAllocateAI" class="controller.action.regist" method = "allocateAdmitId">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="esQuery" class="controller.action.regist" method = "query">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="chooseEp" class="controller.action.regist" method = "chooseEp">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getUserList" class="controller.action.regist" method = "getList">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getAllSub" class="controller.action.SubjectType" method = "getAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="adminLogin" class="controller.action.admin" method = "adminLogin">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="login" class="controller.action.login" method="login">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getSessionPara" class="controller.action.login" method="getSessionPara">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="queryUser" class="controller.action.queryUser"
			method="queryUser">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="mobAllocate" class="controller.action.mobileAdmin"
			method="mAdminAllocate">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="allocateEp" class="controller.action.regist"
			method="allocateEP">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="getMAList" class="controller.action.mobileAdmin"
			method="getList">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="mobAdd" class="controller.action.mobileAdmin"
			method="add">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="mobModify" class="controller.action.mobileAdmin"
			method="modify">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="mobDelete" class="controller.action.mobileAdmin"
			method="delete">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="mobQuery" class="controller.action.mobileAdmin"
			method="query">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="proQuery" class="controller.action.ExpertAction"
			method="query">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
			<action name="proDelete" class="controller.action.ExpertAction"
			method="delete">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
			<action name="proGetList" class="controller.action.ExpertAction"
			method="getList">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="proModify" class="controller.action.ExpertAction"
			method="modify">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="proAdd" class="controller.action.ExpertAction"
			method="add">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="proAllocate" class="controller.action.ExpertAction"
			method="allocate">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<!--<action name="ExcelDownload" class="controller.action.ExcelDownload"
			method="fileDownload">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>  -->
		<action name="fileUpload" class="controller.action.FileUpload"
			method="upload">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name="logout" class="controller.action.login" method="logout">
			<result name="success" type="json">
				<param name= "root">result</param>
			</result>
		</action>
		<action name="excelUpload" class="controller.action.ExcelUpload"
			method="upload">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name = "sign.action" class= "controller.action.regist" method = "sign">
			<result name = "success" type = "json">
				<param name ="root">result</param>
			</result>
		</action>
	</package>
	<package namespace="/" name="root" extends="struts-default">
		<action name="download" class="controller.action.FileDownload"
			method="fileDownload">
			<result name="success" type="stream">
				<param name="contentType">image/jpg</param>
				<param name="inputName">inputStream</param>
				<param name="contentDisposition">attachment;filename="showPhoto.jpg"</param>
				<param name="bufferSize">2048</param>
			</result>
			<result name ="error">/index.jsp</result>
		</action>
	
		<action name="ExcelDownload" class="controller.action.ExcelDownload"
			method="fileDownload">
			<result name="success" type="stream">
				<param name="contentType">application/msexcel</param>
				<param name="inputName">inputStream</param>
				<param name="contentDisposition">attachment;filename="${className}_${epId}.xls"</param>
				<param name="bufferSize">2048</param> 
			</result>
			<result name ="error">/index.jsp</result>
		</action>
		
		<action name="ExcelDownloadAll" class="controller.action.ExcelDownload"
			method="Download">
			<result name="success" type="stream">
				<param name="contentType">application/msexcel</param>
				<param name="inputName">inputStream</param>
				<param name="contentDisposition">attachment;filename="${className}.xls"</param>
				<param name="bufferSize">2048</param> 
			</result>
			<result name ="error">/index.jsp</result>
		</action>
	</package>
</struts>    
